package com.lnking.lnkingplace.model.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.lnking.starter.mybatis.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author sn
 * @since 2022-08-18
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value="RecordUser对象", description="")
public class RecordUser extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户id", required = true)
    private String userId;

    @ApiModelProperty(value = "数据信息(json)")
    private String info;

    @ApiModelProperty(value = "记录时间")
    private LocalDateTime creatorTime;

    @ApiModelProperty(value = "核酸结果出具时间")
    private LocalDateTime resultTime;

    @ApiModelProperty(value = "是否集中隔离")
    private String isolationFlag;

    @ApiModelProperty(value = "是否居家隔离")
    private String homeFlag;

    @ApiModelProperty(value = "是否与病例轨迹相重叠")
    private String trackCoincidenceFlag;

    @ApiModelProperty(value = "今日核酸时间")
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime checkTime;

    @ApiModelProperty(value = "是否核酸")
    private String checkStatus;

    @ApiModelProperty(value = "核酸结果")
    private String resultStatus;

    @ApiModelProperty(value = "数据来源")
    private String dataSources;

    private Boolean delFlag;


}
